package cn.wxz1997.permission.dao;

import cn.wxz1997.permission.dto.PermissionMenuDTO;
import cn.wxz1997.permission.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    List<Permission> selectAll();

    List<Permission> selectByUserId(@Param("userId") Integer userId);

}